changed if statement to status comparison
changed if statement to status comparison
changed if statement to status comparison
changed if statement to status comparison
changed if statement to empty comparison
changed if statement to id comparison
more bug fixing