added buttons and click handlers to client