also initialize on modals which are already visible