change modal to modalwindow
update wrong error class