adding resolve to views