make views REST controller compatible