Remove GUI elements only if needed.