fix sharedpreference bug and add item detail page