rewrote frontend pages