changed over to using app.store instead of passing variables from one view to the other