set media position in config.py update common function and user.py