[ui] fixed input dialog
[fm] fixed default directory permission (fixes #242)