corrected the code, working table with icons