fixed issue with modal buttons