move grid layout logic to FreeboardUI