fixed some sh*t

AJAX calls were just basically broken, so I just fixed them...
fixed tbnType management