some refactor, initial rework on frame layout rendering