add sorting
remove extra _resetLayout