ids changed on templates and js