Broke code in if statement in HelloView into a separate method.