Added required class toggling