created the store in the main view