Make text input boxes work better in layouts