Add handlers for quit/clear buttons