todo: replace jquery with angular http!