cleaning up old code, adding template selection to animal selection page