rewrote index and show pages to account for logged in status