Not closing modals anymore on click on background
Implemented managing of events (basic properties only)