Setting up initializer and create layout functions