creating home controller