function header for delete favorite