add settings tab and fix settings page