make cancel button work with validations