add contains method to layout boxes to test whether a point is inside
improvements to hover tool
partly working