Proper change of states to avoid background running projects