add content and resize behavior