Improved app boilerplate code