added segue and fixed pins and search stuff