Updated the clear class when moving content