adding interaction option allowing user to choose between click and hover functionality