added last update to index
extracted potential from main view
extracted potential from main view