added minus and plus button, moved logic to model, auto updating the view on change