Fixed dialog positioning (hopefully?).
Removed unnecessary positioning code