add logout tab and related functionality