set correct frontend mode