added words changing function of main screen