updated synchandrun, removed function call in view to load data