updated views to work in pre 4.0