starts work on the hover function