refactored index.php
re-using twig-init in get_template_cache.php
updated messages.json
adding and updating random paramter to chart preview url