implemented main box css classes