color change working for new and edit