Added functionality to the push buttons

Working GUI