[TACHYON-94] Reuse header and footer in UI code

Solve the problem mentioned in TACHYON-94 "Reuse header and footer in UI code".