added click, doubleClick functions