Changed voting and thumbnails to use directives + used sample directive