Implementing autogrow for input fields