factored out head title

part of #12