disable non usable buttons when a folder is opened