edit check url key function