finish view and some operation