added cancel and back button