Hooked up some commands to the buttons