change cancel button index