#115 consolidate all code related to title positioning, it was previously spread out