added cleanUp method to emove temp ids and classes