Before Format output in Main Activity