added ok and cancel buttons