add sharedprefs handling, add a few lines to commit to prefs

add context menu and clicking for items. Unable to test on my phone yet
though.