Change how modal works