Gpu optimisation and rewrote page stuff