added onclick listeners for all buttons