minor code clean up in Mongo View