Added logic to handle drag events