css animation and various cleanups