added delete function for image display and music display activities