enable switch between different tree view
manage user authentication state