update layers panel to use React