Dispaly function implemented