added inverse mask
fix dialog issue
Remove lib