before making tab