code for preset lock activity