Fix abnormal behaviour for button cancel/save - prev - progressbar