Added setBehavior method. Fixed bugs in transition listener code.