some small modifications to create snippet page