Permalink controller cleanup