refactored HHDynamicBarButton into single class file