completed main application layout