fixed empty main dialog, formatting