added home controller and hooked it up with template