fix logout issue to route index file