renamed the buttons and functions