Create a function to determine whether the New task should be added/removed from the display list