Create SearchFlight

I would like to change this code to be more like the HomePage where it calls a method and it creates with out having to create the actual page. code works for searching but you must know what is in the database