Added buttons as listeners.