added button to index and how to use pages