add menu frontend code