move status action to status function