moved end in app layout template