Text input fixes and mobile fixes