update app code

add SearchCode class, a little modify in front end