make sure we are not already the parent
fix clicking on the currently opened marker
removed loggin