Implemented Event Handler
Added Event Handling to buttons