Refactoring to use rails helpers instead of custom helper
adding a block capability to the main helper for custom config