Resize with form input