Added functionality to the "Quit" Button