Cleaned up linux popup code