Change getDimension to getSize
Add stub for widget