created reusable modal component. playing with async responses / promises. using ngresource