T3Layout: Refine show/hide function in T3 Layout