remove options for popup window, and limit output size