main element replaced with the same id div