move out header render from application view