refactor site detail