add scan and delete functionality