Added an ajax functionality for delete button. Modified the corresponding html.