created home controller with index