function for the mouse interaction and put the data on the page
refactored css to new file
refactored js to different file