Basic modal code put in place