removing html extensions and fixing links