creating a directive for the service buttons
more refactoring