calculate avg rating, changed color and textbox size