- modified grid-ui element to handle the new support for non-square
grid & circular grids
 * some extra cleanup