starting view and search function