Finish tab functionality