fixes collapse elements
impl autoreload