Remove unrelated fullscreen code and trigger events to be used from outside