add drag and resize