added variable database input
added viewpanel working
fixed merge