Remove and add is-active-class properly on modals