minor fixes (event handling after ajax loading)