cancel button function for wizard