Removed the unnecessary panel creation