added disaplay loop