add rank and visible to the permitted params list