fixing an few small bugs, adding td success, error, and warning