changed ViewRegistrations to use a HashMap for easy lookup of a ViewRegistration
object based on a ViewId