added cancel button support
Introduced the cancel button and thats the end of assignment-1