Fix tab layout for firefox
Refactor friendsstuff to module