Fixing z-indexes and tabs layout