updated for checking url