added eventlistener dragend and show pictures