Function rename.
Selecting proper view based on passed arguments.