Refactoring of updatestatus