fixed linking pages to main