Turned on editing and setting the max depth