added mouse functions for lmb and rmb