move loading urlentry to a method