cleans up session and nav