refactor wp details overview