core-5087 implement layout and template form logic