remove the cancel buttons which is not needed anymore.