preparation of application layout