prepared the home controller and templates