added unlock and lock functionality