fixing hover functionality