Used AJAX to delete the post from screen and also from database