moving slug and votes logic to modules