front end connected to initial query