Didnt work. I am adding some console logs to see whats going on