Yes, you are right. But if don't put this delay() the menu item will not properly selected. Some times when i press next button it goes for two times. When i put this delay() it works fine.
Because I don't know other better way as I am a newbie
.
Update: When I comment all delay() there was nothing changed.
Please @Deltaflyer can you explain how can I do it?