Implemented Open Folder Dialog
Fixed a bug when closing tab