template fixes for profiles