Mainly modified assignPlaceholder() function to allow setting content