added mouse functions