Revert "Removed workaround code which doesn't seem to be needed anymore."

This reverts commit 668d1395ba1417b072bceefb1affa1216f736ac8.
added css for animation control panels