fix title for non-popup and move font-declaration