Updated themeUrl to detect Application Environment