fixed JS and CSS errors in views
created grid_generator service object
Pattern uses grid_generator to find grid value