working on registerviewcontroller.m