updated modal buttons within JS