header and footer tapping fixed + remove alert

used console.log() instead of alert()