change logic for error page
change model editor