adding init code to home controller