add read route
fixed conflicts
refactor js