rename dimen to default_dialog_width since it's used in different places
fix dialog for api < 11