edited ui by using JPanel