css refactor to tables