Added an option(drop down menu) to choose query type