Fixed some bugs in views

Also synchronized commands.