updating view to use common idiom