Cleaned up panel sizes for lower resolution displays and cleaned up the code