added mouse clicking functionality