preparing add attachment dialog, widget