added controller code and search parser