last tab functionality