page changing almost works properly now