Overriden the getPrefferedSize method

consistent behaviour
Added more complex gui