I have a method that can be called by 5 buttons but it should also be called once on startup. How do I pass the view parameter while calling the method from same class?