added a check if the viewer is logged in and only create like javascript functionality if he is. If the user is not logged in he is no longer able to see a link icon over the heart