add hover and click event to board