Adding cancel and logout buttons