fix selection in monthView, fix some crash, add dialogs