changed rendering process and fixed bug of overwriting admin pages!