refactoring reusable elements from /app_authDeom into /platform