Corrected issues of making inherited itsaviewmodelpanel to work