added Dialog to enter password
fixed some issues