changed console.log to alert on nav tap function