update url when select attachment through keyboard