moved all buttons to single method