added home controller and search function