problem of panel animation was resolved and creating new class ui was introduced