Edit blog and post function