added write and search pages