implement the lockscreen