fixed marker update function, added delete marker function