automatically populates key field from URL