refactor task dropdown with clientside haml