Switched favourite button to directive