added trim capabilities to the paella xblock