added methods for the buttons