Clean up the structure of the code, dismiss the keyboard when tapped outside of it