Finished view function.