Click and double-click functions added.