added functionality to delete an element by id