added a method to remove all container's element inline styling. used in the destroy method