move mobile hooks into a module