Make menus and dialogs loaded dynamically

Fix #26