fixed some keyboard registering bugs and improved textfield layout