change approch - using object instead of dom base elements