Sample of gaining access to context and uiviewcontroller