Function: add some javadoc
Add a widget for dimension selection