admin layout with custom helper function