Fixed and updated New Tab

Updated code for New Tab button.
Added the option to double-click on the tab bar to open a new file.
Added 2 configuration options for the up-mentioned features.
Updated code for New Tab button