Views code reformat