Adding onOpen handler for dialog

Adding onOpen handler for dialog. This is required for us to initialize select2 ajax boxes