fixed small bug of swapped lidclosed and buttonsleep