rewrite modals and fixed styles