update view to include function