Updated views for nil cases and added AJAX request for destroy