implement percentage based grid layout system