refactored DOM implementation. now using position relative to parent div.