updates rm and views