added fullscreen mode and close function.