add detail pinning and refactor menu