Added view logic.