added gates animation after button click.  found new bug