have input and text switching