Might be useful to make a helper method that has this long line. E.g. ```refreshViewOptions()``` to avoid repeating this below.