update code formatting of views