drag and resize are working now. Need to optimize UI.