Class to handle exceptions
Fixed the sizes of the panels