adds modal to index