fix cancel button action for all pages