added cancel button to intermediate page