Added master pages and user controls

Master page setup and user controls added to make code neater.