added txt save and display txt to main activity