change getpost to detail