Reorganize Search view init method