Made the clear data and display data work