Added edit post function