fix toggle memory layer visibility, remove useless params