Moved open tab functionality because variabele i was already changed
Added some notifications