add menu changes by outside javascript call