working version with flow layout as submodule