Add window function selection+chart out of panel and dynamic bug