update main frame demo