Fixed bug.
Moving code around...
Fixed duplicated element id.