fix fullscreen and add several functions