add lifecycle to componment