diff --git a/src/ui.c b/src/ui.c
index 8bd72d2..d0848cb 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -141,11 +141,6 @@ bool ui_node(const window *wnd, ui_ctx *ctx, rect rect,
   return false;
 }
 
-internal u64 get_id(ui_ctx *ctx) {
-  // This will always keep the 0 slot empty
-  return ++(ctx->count);
-}
-
 bool ui_noodle(const window *wnd, ui_ctx *ctx, line ln, ui_elem_colours colours,
                rect parent_node) {
   if (ctx->count + 1 >= MAX_UI_ELEMENTS) {
@@ -253,3 +248,8 @@ bool ui_noodle(const window *wnd, ui_ctx *ctx, line ln, ui_elem_colours colours,
 
   return false;
 }
+
+internal u64 get_id(ui_ctx *ctx) {
+  // This will always keep the 0 slot empty
+  return ++(ctx->count);
+}