create radius function and get it to fire on template load