view code refactor