refactored view code
editing raw file works