cancel pending button working