Add logout button to viewer page