Refine app structure. Implement route provider to reuse template and better redirection