Refactored code for reusing and assign result from yahoo quote to labels