fixed view routing and changed to local storage store