clean up hover action code