refactor into common admin layout