Redirect not working and form not responding to changes in form width