fixed bug in the linking, now pages navigate properly