removed redundant focus event and color changes