move code for hover