Adding view controller helper method.