added add and search pages that mostly work