Changed the 'settings' button, made the setting input fields one-liners, decomposed the firebase code into a different method.