remove dead code from masterviewcontroller