moved event attachement in helper
attach event handler for elements that is loaded trough ajax request
here we don't need warning message about unsaved data so it was disabled from user preferences