clear code and add selection color