Added event for logout button