get area handle and name through method which is easier to override
Revert "get area handle and name through method which is easier to override"

This reverts commit 3804e97eea47c29d944dfcd34c9f62c09a478e1b.
prevent default action to avoid having a # in the URL
Merge pull request #1652 from Remo/dialog-close-hash

avoid having # in the URL when closing a dialog