fixed code duplication when creating table views issue