dont render `inputView` in route callback
Improve media query insertion logic

This improves how media queries are inserted into the model-list, by
ensuring that a new media query is inserted at the index where an old
media query was removed from. This maintains the query parameter order
for the media queries.