Made deleteView return an int