cleaned up and fixed conditional display of add task button