made dropdown arrow animations work correctly