style improved and functionality added. checking if grid is filled missing yet