basic notes view function implemented