made controller check that view variant exists before rendering it