Fix the serch box and group all the execution code at the bottom of the file