Add Cancel button and dismissViewController method