added a new method, so no longer refreshing continuosly when deleting old tasks