fixed get code for item page, changed default index