refactoring index ctrl and gmap directive to be cleaner, adding color small utilities