added check for if we are using notifications before we try to remove the notification progress and cancel buttons in the complete and cancel functions.