Fixed some code that was triggering refresh on the navigation