fixes animations on safari
moves styles to widget build