Rename some dialog methods
Fix dialog dimension setting

Fix #6