Fixed crash on close

Fixed layout of text effect and deleted unused events.