ENH:add support for select depart when check docs
BUG:change DocStatus.returned to DocStatus.rejected
ENH:add DocStatus state-machine
BUG:fix bugs on save&submit button