Initial Setup

separated the global variables to a global page