refactored the set view controller