Remove useless imports
Update state completely