improvements in togglefullscreen