Fix bug when file_path is None
Allow TabWidget to be used for tabs other than CodeEdit