add delete function & redirect