diff --git a/src/components/Toolbar.svelte b/src/components/Toolbar.svelte
index ccda05b..c152d8c 100644
--- a/src/components/Toolbar.svelte
+++ b/src/components/Toolbar.svelte
@@ -28,6 +28,7 @@
+{#if context.selectedTaskId !== -1}
{/key}
-{#if context.pressedButtonIndex === IconCode.REMOVE}
+{/if}
+
+{#if context.pressedButtonCode === IconCode.REMOVE && context.selectedTaskId !== -1}
{#key context.updateOnZoomCounter}
@@ -64,13 +67,14 @@
{/key}
{/if}
-{#if context.pressedButtonIndex === IconCode.STATUS}
+
+{#if context.pressedButtonCode === IconCode.STATUS && context.selectedTaskId !== -1}
{#key context.updateOnZoomCounter}
@@ -83,7 +87,6 @@
{/if}