fix to show soft input board only when needed