refactoring to admin package as app