Add buttons for favoriting/unfavoriting and only show the needed button