resolve the issue related to app restart on logout