sample view implementation