rewrite views creation from maps into specilized objects

#206
Missing bracets `{}`