fix permalink and non functional links