filter contract model for table
fix contract permissions query, handle null field name
remove manual save from program model
fix frontend references building
add dict with contract fields