Fixed saving view and added deleteView w/ tests