prepared input handler for mobile devices