add helper to get application url from httpcontext
use new helper for app url
add missing reference
add missing reference