Fixing bug in appointment add widget