+ check for compulsory fields in new type declaration
fixed the html error on flag
+ change css so pending rows stays on top