Made changes to write view.