changing thw to modal