moved search box to seperate controller and template