add action after marker script and check for bounds