add few more error checks for model buildin page