Close tab functionality added