Complete surface view and fix bugs

Bugs about view in window and data type restrict for view