move xhr calls from actions to service layer