Added dynamic body class function