fixing modal dialog + tooltips for minerals
merge