window and dialogue opening behaviour