added angular and rails communication