app layout with model template