Keep input fields from overflowing viewport 

Small change to keep input fields within the window.