fixed template to handle url ID