refactoring: change bind to the annonim function; move showing result to ajaxFactor