fix register n login, generate search view