added undefined check in mark, and added feature to show DIVS at once.