move comment route functions into one file