Moved fetch article code to the main activity class