Made all pages function well. Fixed every errors