added sample view and logic