fix
add lock/unlock gui functions