added rudimentary response to click and double click events