added the links back with logic to change home to index