Made it so that when quantity is 0 it removes the model and view