added removal of old div