Added page titles
Refactored lines drawing