Move showtitle function into helper.php