-1 error + update

Alert box added and minor delete fix