added dark theme and moved legend