move ViewId to a separate header