uprava state diagram