Adding icon and doing some changes to deal with the FrameListener class.