implemented simple layout