port option dialog to vaadin 7