add logout link and function