fixing jquery.on implementation to handle dynamicaly added content