preload user id; added ifindevmode for hbs