Compile modal changes