handle cancel button also as disabled button