auto resize when changing input