added delete methods to applicationcontroller