fixed event causing problems
started to rewrite the ajax module