move hover logic to css from js