coding create detail menu