working on transition animation and event triggerring