+logic to lock/unlock based on wifi presence