made changes allowing height of widget to be set