Adding functionality to the hover bar