added support for touch events. hopefully solved for mobile