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

Solve the problem mentioned in TACHYON-94 "Reuse header and footer in UI code".
I will care of the it.