keep track of status before sidebar code