Added support for hooks in tokens.py
Display correctly token for different devices