cancel button action fixed for first three panels