add startup code and views