unit detail form refactor styles/markup