works out requirejs with different view classes