this function may become future scala popup outline minor mode