update permalink on load