adding icon functionality