updated the grid classes and rewrote based up on panels layout