updated onclick event to sub menu