ADDED: functionality for loading bar
UPADTED: the blogPost directive to properly handle tab enteries in the angular way