Refactor the revision view, test it