Role of lawyers in writ petitions