working on enquiry controller