making window more responsive