added js events

added (should bind later) events to newly generated elements