move vote helper to lib and require in application controller