Changed code for simple menu click as it was not responsive in the iphone