Added titles and icon with js functions