Update main_controller.rb

Made the changes from earlier comments... mostly just adding '%' to many of the searches