created delete selected button and hook to the back end