added element blocks and multiple layouts