Refactoring setting view