Making AppGlobalView separate from router