fix problems with bootstrap-switch
refactor app (1)