add "Next Actoin" to tasks, use rails arrays for options instead of JS.