Implemented saving state in UserSearch