subclassing flow layout

many attempts to subclass flow layout