update to use angualrjs