Creating state changes in lock screen