refactoring views and body html