adding flush animation