adding back button and fixing up detail pages