fixed js errors and added child styles