add regex check for the code editor and completed the code for the progressbar, just need to comment it