Fixed bugs in drag view management. Added initialState attribute