added the cancel button and log out button