Extracted common view stuff to form.html
Added delete feature for capsules