added mouse support