before action in home controller