Removed unneeded code from edit_type_view