Moved initialization of search and user handlers to onCreate() to avoid recreation on orientation change.