changed console.logs to alerts for android debugging