made work around for element.remove() not working on android browser