adds classes depending on the current status