implemented drawing ui