handle url in frontend