added delete action and functionality