Add configureRightView function.