File setup for reducing the amount of code in codebehind