pending flag in learn mode

Conflicts:
	app/scripts/controllers/main.js