added event selection and lock-unlock code. problem with loc network on
main thread problem, need to use async task