Added ability to specify dialogbox position