Implemented checks for whether it can increase/decrease depth/detail.
Also added expand/collapse windows feature.