Add search controller and refactor static pages controller