completed functionality for all buttons on gui