summary: no need to condition error formatting.
refactor: move homepage view to common.