Modified code to redirect to DB Monitor tab after logging out from any tab.