refactored rants controller