moving click method to single line