adding view tables functionality