event handling (WIP)
resolved merge conflict
added model change events to tabs, removed events from dialogs (not needet atm)