fixed marker remove function so it makes sure handlers receive the 'remove' event