Move fragment into it's own file. Create AsyncTask in order to do the network work.