put the arguments for open_modal in the right place