Refactoring for settings using helper functions
Finalized settings implementation
Setting titles of pages