renamed viewOptions to hashes