Moved store config to viewmodel and viewcontroller