Create app and main layout