add locked state