add functionality to logout button