Lifecycle code. Includes a text box and intent extra functionality