replace switch in status action