fixed. (now using $window.open)