moved addeventlistener into mobileinit