completed mask menu function, and topline other debug.