adds test page for offline development
removes unnecessary variable from switch statement