Added modal move and resize modes.