improved clicking and selecting functionality