Add favorite/unfavorite toggle to resource page.