Formating restore and cancel buttons