detect retina screen before hooking events