Inserting blocks from a tool palette