home-profile now refers to relative URL (not hard coded to production site)
updated selectTemplate so that it works