remove content actions if no elements inside