added feature to lock a layer by right clicking on it