Added preloader and fixed bug with saving page