Adding transition events