refreshing view on navigation.