added header content and some smart sizing