updates to handle VA view
cleaned up JS