added menu text changing function on menu click