Added buttons and Panels and button controls for separate functions