another attempt at fixing the events handling for mobile