fix bug with empty directory, disable click on title