breaking out code for web site and apps