fixed bug adding unique page and added refresh feature