Fixed the tab menu, implemented retry function for promises, replaced telegram-header component with a partial, and cleaned up the code for readability.