working on making bounding box work without DialogListener (this commit does not compile)