Added resize handling and handlefinish event

Added resize handling and handlefinish event