Moved ui logic outside Entity. Implemented automatic backups.