Damn preoptimization

Added bunch of insignificant code and redesigned some pages