Re-layout the application