add ctrl and view, use localStorage