removed an unneeded param from addmodal
remove logger