created home controller and index