Add top-buffer class to rm_elements