updated hover function and added pinit button local