implemented option for custom loading templates