fix dynamic bg and display tabs