refactor code
left table change to element with div and span