changed getAttribute to getParameter
fixed title of items