Base code for Settings View Controller