Dynamic onclick markers working