separated css and added added backend calls