app is quited if no notes folder is selected