fix views path and model attributes