Implemented portions of left and right click events