Make modal its own module