implemented tab close button