added text input to main view