Fixed issue where clicking on directories would continue to 'reopen', resulting in displaying same files repeatedly