Removed code-mirror. Fixed tab close by index