renamed core to details as it was clashing with core. also made the pages refresh when clicked