implement collapse drawer for all pagetypes