integrate angular for display instead of console/alert