Add resize and placeholder code