added dragview function