create admin layout with flash