Extract logout to navbar