making the links in top nav function