update the application layout