separate url reload for settings tab + some code refactoring