adding touch event for mobile to try and fix the active state