Added common dialog owner
Added state machine to selection editor