Remove activated event; Fixed #13

separated render and activate procedure.