fix titlezing to work with dirs, move methods to page class
fix titlezing in page instance